package com.common.utils;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;

public class CommonUtils {

	 public static void Exit(final Context cont)  
	    {  
	        AlertDialog.Builder builder = new AlertDialog.Builder(cont);  
	        builder.setIcon(android.R.drawable.ic_dialog_info);  
	        builder.setTitle("确定退出吗？");  
	        builder.setPositiveButton("确定", new DialogInterface.OnClickListener() {  
	            public void onClick(DialogInterface dialog, int which) {  
	                dialog.dismiss();  
	                //退出  
	                AppManager.getAppManager().AppExit(cont);  
	            }  
	        });  
	        builder.setNegativeButton("继续使用", new DialogInterface.OnClickListener() {  
	            public void onClick(DialogInterface dialog, int which) {  
	                dialog.dismiss();  
	            }  
	        });  
	        builder.show();  
	    }  
}
